﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KML
{
    [Serializable]
    public struct KMLPoint
    {
        AltitudeMode altMode;
        double lon;
        double lat;
        double alt;

        internal KMLPoint(AltitudeMode mode, double lat, double lon, double alt)
        {
            this.altMode = mode;
            this.lat = lat;
            this.lon = lon;
            this.alt = alt;
        }

        public AltitudeMode AltitudeMode { get { return altMode; } }
        public double Latitude { get { return lat; } }
        public double Longitude { get { return lon; } }
        public double Altitude { get { return alt; } }

        public override string ToString()
        {
            return string.Format("(lat : {0}, lon : {1})", lat, lon);
        }
    }

    public enum AltitudeMode
    {
        RelativeToGround
    }
}
